package com.shujuku.web;

import com.shujuku.service.MyTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 作者: LCG
 * 日期: 2020/3/19 22:54
 * 描述:
 */

@RestController
public class MyTestController {

    @Autowired
    MyTestService myTestService;

    @RequestMapping("getData1/{id1}/{id2}")
    public void test001(@PathVariable String id1,@PathVariable String id2) throws InterruptedException {
        myTestService.test01(id1,id2);
    }

    @RequestMapping("getData2/{id1}/{id2}")
    public void test002(@PathVariable String id1,@PathVariable String id2) throws InterruptedException {
        myTestService.test02(id1,id2);
    }

}
